package com.zeng.jiudian.mapper;

import com.zeng.jiudian.bean.NewModel;
import com.zeng.jiudian.bean.NewModelExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewMapper
{
    long countByExample(NewModelExample example);

    int deleteByExample(NewModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(NewModel record);

    int insertSelective(NewModel record);

    List<NewModel> selectByExample(NewModelExample example);

    //创1
    public List<NewModel> selectByNewTypeId(Integer newTypeId);

    NewModel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") NewModel record, @Param("example") NewModelExample example);

    int updateByExample(@Param("record") NewModel record, @Param("example") NewModelExample example);

    int updateByPrimaryKeySelective(NewModel record);

    int updateByPrimaryKey(NewModel record);
}